自然周與自然月的Hive統計SQL 按照周或者月統計活躍數: 周: SELECT week, COUNT(DISTINCT pin), business_type FROM ( SELECT DISTINCT user_lo ...